--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Commit 0c965d92592db897e67f97823a9107adeabab9d3
Parents : dce43bd
Author : Mark Qvist <mark@unsigned.io>
Date : 2025-11-07T23:15:23+01:00
Ensure RNS exit handlers are executed on service shutdown, in case OS event is not sent. Fixes #90.
Changes
Diff
diff --git a/sbapp/sideband/core.py b/sbapp/sideband/core.py
index a83d121f..76627c02 100644
--- a/sbapp/sideband/core.py
+++ b/sbapp/sideband/core.py
@@ -5509,7 +5509,7 @@ class SidebandCore():
def cleanup(self):
if RNS.vendor.platformutils.get_platform() == "android":
if not self.reticulum.is_connected_to_shared_instance:
- RNS.Transport.detach_interfaces()
+ RNS.Reticulum.exit_handler()
def _start_voice(self):
try:
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────